package com.hrms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName t_department
 */
@TableName(value ="t_department")
@Data
public class Department implements Serializable {
    /**
     * 主键，部门编号
     */
    @TableId(type = IdType.AUTO)
    private Integer deptNo;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 上级部门编号
     */
    private Integer parentDeptNo;

    /**
     * 所在位置
     */
    private String location;

    /**
     * 
     */
    private String isDeleted;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date modifyTime;

    /**
     * 
     */
    private String modifyUser;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 
     */
    private String createUser;

    @TableField(exist = false)
    private String parentname;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}